<?php

/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/8/22
 * Time: 16:16
 */
class 解析微信支付结果
{

}
$msg = array();

$postStr = file_get_contents('php://input');

$msg = (array)simplexml_load_string($postStr, 'SimpleXMLElement', LIBXML_NOCDATA);